package com.dayouzi.crawler_monitor.pojo.query;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CrawlerDataUpdateVO", description="stangbidnew数据修改对象")
public class CrawlerDataUpdateVO {

    @ApiModelProperty(value = "主键")
    private Integer did;

    @NotNull(message = "数据id不能为空")
    @ApiModelProperty(value = "数据id")
    private Integer dataId;

    @NotNull(message = "地区ID不能为空")
    @ApiModelProperty(value = "地区ID")
    private Integer areaId;

//    @NotNull(message = "分类ID不能为空")
    @ApiModelProperty(value = "分类ID 0:批复 1:招标 2:中标 3：开标")
    private Integer cateId;

    @NotEmpty(message = "标题不能为空")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotEmpty(message = "来源不能为空")
    @ApiModelProperty(value = "来源")
    private String author;

    @NotEmpty(message = "发布时间不能为空")
    @ApiModelProperty(value = "发布时间")
    private String pubtime;

    @NotEmpty(message = "外部链接不能为空")
    @ApiModelProperty(value = "外部链接")
    private String outurl;

//    @NotEmpty(message = "来源地区不能为空")
    @ApiModelProperty(value = "来源地区")
    private String location;

    @ApiModelProperty(value = "pdf文件")
    private String intro;

    @ApiModelProperty(value = "正文")
    private String info;

    @ApiModelProperty(value = "添加时间")
    private String addTime;

    @NotEmpty(message = "表名称不能为空")
    @ApiModelProperty(value = "表名称")
    private String tableName;

    @ApiModelProperty(value = "爬虫类型")
    private Integer spiderType;

    @ApiModelProperty(value = "标签")
    private String tag;

    @ApiModelProperty(value = "标签列表")
    private List<String> tags;
    
    @ApiModelProperty(value = "来源等级")
    private Integer level;
}
